Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace parser #125

Merged
merged 14 commits into from
Jan 30, 2024
Merged

Replace parser #125

merged 14 commits into from
Jan 30, 2024

Conversation

mayhem
Copy link
Member

@mayhem mayhem commented Jan 29, 2024

The PyParsing parser was pretty powerful, but it had the worst error messages on the planet. By simplifying the syntax of LB-Radio a bit, the parser becomes a lot simpler and allows the super simple artist and tag queries that most people will use. This new parser is written in straight python and has much improved error messages, but I am sure that I've missed edge cases for things that need to be detected, but for now is is ok to merge. Before we release this into prod, we'll need to do a round of testing on beta to ensure that all is ok.

@mayhem mayhem marked this pull request as ready for review January 29, 2024 16:39
@mayhem mayhem requested a review from amCap1712 January 29, 2024 16:39
Copy link

github-actions bot commented Jan 29, 2024

Test Results

  5 files  ± 0    5 suites  ±0   4s ⏱️ -2s
 52 tests + 2   52 ✅ + 2  0 💤 ±0  0 ❌ ±0 
260 runs  +10  260 ✅ +10  0 💤 ±0  0 ❌ ±0 

Results for commit 6964eb6. ± Comparison against base commit bbabba5.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 29, 2024

Package Line Rate Complexity Health
. 43% 0
listenbrainz 53% 0
musicbrainz 78% 0
patches 39% 0
patches.lb_radio_classes 26% 0
tools 76% 0
. 43% 0
listenbrainz 53% 0
musicbrainz 77% 0
patches 39% 0
patches.lb_radio_classes 27% 0
tools 76% 0
. 43% 0
listenbrainz 53% 0
musicbrainz 77% 0
patches 39% 0
patches.lb_radio_classes 27% 0
tools 76% 0
. 43% 0
listenbrainz 53% 0
musicbrainz 78% 0
patches 39% 0
patches.lb_radio_classes 26% 0
tools 76% 0
. 43% 0
listenbrainz 53% 0
musicbrainz 78% 0
patches 39% 0
patches.lb_radio_classes 26% 0
tools 76% 0
Summary 46% (7759 / 17018) 0

docs/lb_radio.rst Outdated Show resolved Hide resolved
Copy link
Member

@amCap1712 amCap1712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@mayhem mayhem merged commit 2af0ef8 into main Jan 30, 2024
7 checks passed
@mayhem mayhem deleted the replace-parser branch January 30, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants